package com.dragon.modules.yuegou.query.coupon;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.coupon.CouponGiftEntity;
import com.dragon.modules.yuegou.enums.coupon.CouponGiftTemplateType;
import com.dragon.modules.yuegou.enums.coupon.CouponGiftType;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 停车券赠送任务信息表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-10-25 15:45:17
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class CouponGiftQuery extends CouponGiftEntity implements Query<CouponGiftEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 集团ID查询条件 */
	@JsonUnwrapped(prefix = "groupId")
	private Condition<String> groupIdCondition;

    /** 商圈ID查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** [枚举]模板类型：0-停车券-PARK_COUPON查询条件 */
	@JsonUnwrapped(prefix = "templateType")
	private Condition<CouponGiftTemplateType> templateTypeCondition;

    /** 模板ID查询条件 */
	@JsonUnwrapped(prefix = "templateId")
	private Condition<String> templateIdCondition;

    /** 开始时间查询条件 */
	@JsonUnwrapped(prefix = "beginTime")
	private Condition<LocalDateTime> beginTimeCondition;

    /** 结束时间查询条件 */
	@JsonUnwrapped(prefix = "endTime")
	private Condition<LocalDateTime> endTimeCondition;

    /** 赠送数量 默认为1查询条件 */
	@JsonUnwrapped(prefix = "sendNum")
	private Condition<Integer> sendNumCondition;

    /** 赠送条件 每月多少号 1~31 每周1~7 为0则不生效查询条件 */
	@JsonUnwrapped(prefix = "condition")
	private Condition<Integer> conditionCondition;

    /** 赠送时间点查询条件 */
	@JsonUnwrapped(prefix = "hour")
	private Condition<Integer> hourCondition;

    /** [枚举]赠送类型：0-每日送券-DAY、1-每周送券-WEEK、2-每月送券-MONTH查询条件 */
	@JsonUnwrapped(prefix = "type")
	private Condition<CouponGiftType> typeCondition;

    /** 是否可用（1：不可用，0：正常）查询条件 */
	@JsonUnwrapped(prefix = "status")
	private Condition<Boolean> statusCondition;

    /** 创建者查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 修改人查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 修改时间查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 是否删除（1：已删除，0：未删除）查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 删除人查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

    /** 删除时间查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public CouponGiftQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public CouponGiftQuery(CouponGiftEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public CouponGiftQuery(CouponGiftQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.groupIdCondition != null) {
			this.groupIdCondition = other.groupIdCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.templateTypeCondition != null) {
			this.templateTypeCondition = other.templateTypeCondition.copy();
		}
		if(other.templateIdCondition != null) {
			this.templateIdCondition = other.templateIdCondition.copy();
		}
		if(other.beginTimeCondition != null) {
			this.beginTimeCondition = other.beginTimeCondition.copy();
		}
		if(other.endTimeCondition != null) {
			this.endTimeCondition = other.endTimeCondition.copy();
		}
		if(other.sendNumCondition != null) {
			this.sendNumCondition = other.sendNumCondition.copy();
		}
		if(other.conditionCondition != null) {
			this.conditionCondition = other.conditionCondition.copy();
		}
		if(other.hourCondition != null) {
			this.hourCondition = other.hourCondition.copy();
		}
		if(other.typeCondition != null) {
			this.typeCondition = other.typeCondition.copy();
		}
		if(other.statusCondition != null) {
			this.statusCondition = other.statusCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<CouponGiftEntity> toQueryWrapper() {
		QueryWrapper<CouponGiftEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (groupIdCondition != null) {
			groupIdCondition.toWrapper(wrapper, COL_GROUP_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (templateTypeCondition != null) {
			templateTypeCondition.toWrapper(wrapper, COL_TEMPLATE_TYPE);
		}
		if (templateIdCondition != null) {
			templateIdCondition.toWrapper(wrapper, COL_TEMPLATE_ID);
		}
		if (beginTimeCondition != null) {
			beginTimeCondition.toWrapper(wrapper, COL_BEGIN_TIME);
		}
		if (endTimeCondition != null) {
			endTimeCondition.toWrapper(wrapper, COL_END_TIME);
		}
		if (sendNumCondition != null) {
			sendNumCondition.toWrapper(wrapper, COL_SEND_NUM);
		}
		if (conditionCondition != null) {
			conditionCondition.toWrapper(wrapper, COL_CONDITION);
		}
		if (hourCondition != null) {
			hourCondition.toWrapper(wrapper, COL_HOUR);
		}
		if (typeCondition != null) {
			typeCondition.toWrapper(wrapper, COL_TYPE);
		}
		if (statusCondition != null) {
			statusCondition.toWrapper(wrapper, COL_STATUS);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回集团ID查询条件
	 * 
	 * @return groupIdCondition 集团ID查询条件
	 */
	public Condition<String> groupId() {
		this.groupIdCondition = new Condition<>();
		return this.groupIdCondition;
	}
	
	/**
	 * 获取集团ID查询条件
	 * 
	 * @return groupIdCondition 集团ID查询条件
	 */
	public Condition<String> getGroupIdCondition() {
		return groupIdCondition;
	}

	/**
	 * 设置集团ID查询条件
	 * 
	 * @param groupIdCondition 集团ID查询条件
	 */
	public void setGroupIdCondition(Condition<String> groupIdCondition) {
		this.groupIdCondition = groupIdCondition;
	}

	/**
	 * 构造并返回商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈ID查询条件
	 * 
	 * @param busdIdCondition 商圈ID查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回[枚举]模板类型：0-停车券-PARK_COUPON查询条件
	 * 
	 * @return templateTypeCondition [枚举]模板类型：0-停车券-PARK_COUPON查询条件
	 */
	public Condition<CouponGiftTemplateType> templateType() {
		this.templateTypeCondition = new Condition<>();
		return this.templateTypeCondition;
	}
	
	/**
	 * 获取[枚举]模板类型：0-停车券-PARK_COUPON查询条件
	 * 
	 * @return templateTypeCondition [枚举]模板类型：0-停车券-PARK_COUPON查询条件
	 */
	public Condition<CouponGiftTemplateType> getTemplateTypeCondition() {
		return templateTypeCondition;
	}

	/**
	 * 设置[枚举]模板类型：0-停车券-PARK_COUPON查询条件
	 * 
	 * @param templateTypeCondition [枚举]模板类型：0-停车券-PARK_COUPON查询条件
	 */
	public void setTemplateTypeCondition(Condition<CouponGiftTemplateType> templateTypeCondition) {
		this.templateTypeCondition = templateTypeCondition;
	}

	/**
	 * 构造并返回模板ID查询条件
	 * 
	 * @return templateIdCondition 模板ID查询条件
	 */
	public Condition<String> templateId() {
		this.templateIdCondition = new Condition<>();
		return this.templateIdCondition;
	}
	
	/**
	 * 获取模板ID查询条件
	 * 
	 * @return templateIdCondition 模板ID查询条件
	 */
	public Condition<String> getTemplateIdCondition() {
		return templateIdCondition;
	}

	/**
	 * 设置模板ID查询条件
	 * 
	 * @param templateIdCondition 模板ID查询条件
	 */
	public void setTemplateIdCondition(Condition<String> templateIdCondition) {
		this.templateIdCondition = templateIdCondition;
	}

	/**
	 * 构造并返回开始时间查询条件
	 * 
	 * @return beginTimeCondition 开始时间查询条件
	 */
	public Condition<LocalDateTime> beginTime() {
		this.beginTimeCondition = new Condition<>();
		return this.beginTimeCondition;
	}
	
	/**
	 * 获取开始时间查询条件
	 * 
	 * @return beginTimeCondition 开始时间查询条件
	 */
	public Condition<LocalDateTime> getBeginTimeCondition() {
		return beginTimeCondition;
	}

	/**
	 * 设置开始时间查询条件
	 * 
	 * @param beginTimeCondition 开始时间查询条件
	 */
	public void setBeginTimeCondition(Condition<LocalDateTime> beginTimeCondition) {
		this.beginTimeCondition = beginTimeCondition;
	}

	/**
	 * 构造并返回结束时间查询条件
	 * 
	 * @return endTimeCondition 结束时间查询条件
	 */
	public Condition<LocalDateTime> endTime() {
		this.endTimeCondition = new Condition<>();
		return this.endTimeCondition;
	}
	
	/**
	 * 获取结束时间查询条件
	 * 
	 * @return endTimeCondition 结束时间查询条件
	 */
	public Condition<LocalDateTime> getEndTimeCondition() {
		return endTimeCondition;
	}

	/**
	 * 设置结束时间查询条件
	 * 
	 * @param endTimeCondition 结束时间查询条件
	 */
	public void setEndTimeCondition(Condition<LocalDateTime> endTimeCondition) {
		this.endTimeCondition = endTimeCondition;
	}

	/**
	 * 构造并返回赠送数量 默认为1查询条件
	 * 
	 * @return sendNumCondition 赠送数量 默认为1查询条件
	 */
	public Condition<Integer> sendNum() {
		this.sendNumCondition = new Condition<>();
		return this.sendNumCondition;
	}
	
	/**
	 * 获取赠送数量 默认为1查询条件
	 * 
	 * @return sendNumCondition 赠送数量 默认为1查询条件
	 */
	public Condition<Integer> getSendNumCondition() {
		return sendNumCondition;
	}

	/**
	 * 设置赠送数量 默认为1查询条件
	 * 
	 * @param sendNumCondition 赠送数量 默认为1查询条件
	 */
	public void setSendNumCondition(Condition<Integer> sendNumCondition) {
		this.sendNumCondition = sendNumCondition;
	}

	/**
	 * 构造并返回赠送条件 每月多少号 1~31 每周1~7 为0则不生效查询条件
	 * 
	 * @return conditionCondition 赠送条件 每月多少号 1~31 每周1~7 为0则不生效查询条件
	 */
	public Condition<Integer> condition() {
		this.conditionCondition = new Condition<>();
		return this.conditionCondition;
	}
	
	/**
	 * 获取赠送条件 每月多少号 1~31 每周1~7 为0则不生效查询条件
	 * 
	 * @return conditionCondition 赠送条件 每月多少号 1~31 每周1~7 为0则不生效查询条件
	 */
	public Condition<Integer> getConditionCondition() {
		return conditionCondition;
	}

	/**
	 * 设置赠送条件 每月多少号 1~31 每周1~7 为0则不生效查询条件
	 * 
	 * @param conditionCondition 赠送条件 每月多少号 1~31 每周1~7 为0则不生效查询条件
	 */
	public void setConditionCondition(Condition<Integer> conditionCondition) {
		this.conditionCondition = conditionCondition;
	}

	/**
	 * 构造并返回赠送时间点查询条件
	 * 
	 * @return hourCondition 赠送时间点查询条件
	 */
	public Condition<Integer> hour() {
		this.hourCondition = new Condition<>();
		return this.hourCondition;
	}
	
	/**
	 * 获取赠送时间点查询条件
	 * 
	 * @return hourCondition 赠送时间点查询条件
	 */
	public Condition<Integer> getHourCondition() {
		return hourCondition;
	}

	/**
	 * 设置赠送时间点查询条件
	 * 
	 * @param hourCondition 赠送时间点查询条件
	 */
	public void setHourCondition(Condition<Integer> hourCondition) {
		this.hourCondition = hourCondition;
	}

	/**
	 * 构造并返回[枚举]赠送类型：0-每日送券-DAY、1-每周送券-WEEK、2-每月送券-MONTH查询条件
	 * 
	 * @return typeCondition [枚举]赠送类型：0-每日送券-DAY、1-每周送券-WEEK、2-每月送券-MONTH查询条件
	 */
	public Condition<CouponGiftType> type() {
		this.typeCondition = new Condition<>();
		return this.typeCondition;
	}
	
	/**
	 * 获取[枚举]赠送类型：0-每日送券-DAY、1-每周送券-WEEK、2-每月送券-MONTH查询条件
	 * 
	 * @return typeCondition [枚举]赠送类型：0-每日送券-DAY、1-每周送券-WEEK、2-每月送券-MONTH查询条件
	 */
	public Condition<CouponGiftType> getTypeCondition() {
		return typeCondition;
	}

	/**
	 * 设置[枚举]赠送类型：0-每日送券-DAY、1-每周送券-WEEK、2-每月送券-MONTH查询条件
	 * 
	 * @param typeCondition [枚举]赠送类型：0-每日送券-DAY、1-每周送券-WEEK、2-每月送券-MONTH查询条件
	 */
	public void setTypeCondition(Condition<CouponGiftType> typeCondition) {
		this.typeCondition = typeCondition;
	}

	/**
	 * 构造并返回是否可用（1：不可用，0：正常）查询条件
	 * 
	 * @return statusCondition 是否可用（1：不可用，0：正常）查询条件
	 */
	public Condition<Boolean> status() {
		this.statusCondition = new Condition<>();
		return this.statusCondition;
	}
	
	/**
	 * 获取是否可用（1：不可用，0：正常）查询条件
	 * 
	 * @return statusCondition 是否可用（1：不可用，0：正常）查询条件
	 */
	public Condition<Boolean> getStatusCondition() {
		return statusCondition;
	}

	/**
	 * 设置是否可用（1：不可用，0：正常）查询条件
	 * 
	 * @param statusCondition 是否可用（1：不可用，0：正常）查询条件
	 */
	public void setStatusCondition(Condition<Boolean> statusCondition) {
		this.statusCondition = statusCondition;
	}

	/**
	 * 构造并返回创建者查询条件
	 * 
	 * @return createdByCondition 创建者查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取创建者查询条件
	 * 
	 * @return createdByCondition 创建者查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置创建者查询条件
	 * 
	 * @param createdByCondition 创建者查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回修改人查询条件
	 * 
	 * @return modifiedByCondition 修改人查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取修改人查询条件
	 * 
	 * @return modifiedByCondition 修改人查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置修改人查询条件
	 * 
	 * @param modifiedByCondition 修改人查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回修改时间查询条件
	 * 
	 * @return modifiedTimeCondition 修改时间查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取修改时间查询条件
	 * 
	 * @return modifiedTimeCondition 修改时间查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置修改时间查询条件
	 * 
	 * @param modifiedTimeCondition 修改时间查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回是否删除（1：已删除，0：未删除）查询条件
	 * 
	 * @return delCondition 是否删除（1：已删除，0：未删除）查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取是否删除（1：已删除，0：未删除）查询条件
	 * 
	 * @return delCondition 是否删除（1：已删除，0：未删除）查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置是否删除（1：已删除，0：未删除）查询条件
	 * 
	 * @param delCondition 是否删除（1：已删除，0：未删除）查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回删除人查询条件
	 * 
	 * @return delByCondition 删除人查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取删除人查询条件
	 * 
	 * @return delByCondition 删除人查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置删除人查询条件
	 * 
	 * @param delByCondition 删除人查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

	/**
	 * 构造并返回删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置删除时间查询条件
	 * 
	 * @param delTimeCondition 删除时间查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

}
